import time
from selenium.webdriver.common.by import By

def account(driver, y_password, x_password, q_password):
    driver.find_element(By.XPATH,"//*[@id='leftbaraside']/div[2]/nav/ul/li[4]/a").click()
    driver.find_element(By.XPATH,"//*[@id='leftbaraside']/div[2]/nav/ul/li[4]/ul/li[4]/a").click()

    driver.find_element(By.ID, "oldpwd").send_keys(y_password)
    driver.find_element(By.ID, "newpwd").send_keys(x_password)
    driver.find_element(By.ID, "confirmpwd").send_keys(q_password)
    driver.find_element(By.ID, "submit").click()
    time.sleep(1.5)